#!/bin/sh

cd "`dirname "$0"`"

if [ ! -d "$PWD/wine_prefix/drive_c/users/$USER" ]
then 
  mkdir -p "$PWD/wine_prefix/drive_c/users/$USER"
  ln -s ../../../.. wine_prefix/drive_c/users/$USER/Мои\ документы	

  if [ -d "$HOME/SAdK" ]
  then
     mkdir -p "$PWD/SAdK"
     cp -R "$HOME/SAdK" "$PWD/SAdK"      
  fi
fi
cd game/bin/
../../wine SADK.exe
